/*
 * @Description:
 * @Date: 2024-07-09 14:40:33
 * @LastEditTime: 2024-07-17 10:07:30
 */
import request from '@/config/axios'
import qs from 'qs'

//获取轮播图列表
export const getswiperPage = async (data) => {
  return await request.post({ url: '/countryside/carousel_image/page', data })
}
//新增
export const createSwiper = async (data) => {
  return await request.post({ url: '/countryside/carousel_image/create', data })
}
//更新轮播 

export const updateSwiper = async (data) => {
  return await request.put({ url: '/countryside/carousel_image/update', data })
}
//获取轮播详情
export const getSwiperDetail = async (id) => {
  return await request.get({ url: '/countryside/carousel_image/get?id=' + id })
}


//删除轮播 
export const deleteSwiper = async (ids) => {
  return await request.delete({
    url: `/countryside/carousel_image/delete`,
    params: {
      ids: ids.join(',')
    }
  })
}

